package studay.builder;

/**
 * @program: 设计模式
 * @description: 高配版电脑
 * @author: Tom
 * @create: 2022-01-06 15:32
 **/
public class HeightComputerBuilder implements Build{

    private Computer computer = new Computer();

    @Override
    public void buildCpu() {
        computer.setCpu("高配cpu");
    }

    @Override
    public void buildMainboard() {
        computer.setMainboard("高配主板");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("高配磁盘");
    }

    @Override
    public void buildPower() {
        computer.setPower("高配电源");
    }

    @Override
    public void buildMoney() {
        computer.setMemory("高配内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
